<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-1.11.3.js"></script>
</head>
<body>
<div>JavaScript是世界上最好的语言</div>
<div>JavaScript2是世界上最好的语言</div>
<script>
$('div').html(function(index,html){
    console.log(index);

    console.log(html);
    return html.replace('JavaScript','PHP')
})



</script>
</body>
</html>